/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.web.financial.store;

import java.sql.SQLException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import oracle.jdbc.OracleTypes;
import queenb.net.datacontrol.DataStatement;
import queenb.net.datacontrol.Param;
import queenb.net.entitybean.H075;


import queenb.web.util.PackageContants;

/**
 *
 * @author Nguyen Hung
 */
public class H075Store extends H075 {

    public List<H075> getListCombH075(int pnFH000,
            int pnFH200,
            String pvLOGIN) {
        DataStatement dataStatement = new DataStatement(PackageContants.LIST_COMH075, OracleTypes.CURSOR, new Param[]{
                    new Param(OracleTypes.INTEGER, pnFH000),
                    new Param(OracleTypes.INTEGER, pnFH200),
                    new Param(OracleTypes.CHAR, pvLOGIN)});
        try {
            return super.find(dataStatement, H075.class);
        } catch (SQLException ex) {
            Logger.getLogger(H075Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        } catch (InstantiationException ex) {
            Logger.getLogger(H075Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        } catch (IllegalAccessException ex) {
            Logger.getLogger(H075Store.class.getName()).log(Level.SEVERE, null, ex);
            return null;
        }
    }
}
